from pydantic import BaseModel, ConfigDict
from typing import List, Generic, TypeVar
from pydantic.alias_generators import to_camel
from logging import getLogger, INFO

logger = getLogger(__name__)
logger.setLevel(INFO)

T = TypeVar("T")

class BaseSchema(BaseModel):
    model_config = ConfigDict(
        from_attributes=True,
        populate_by_name=True,
        alias_generator=to_camel,
        alias_priority=1,
        extra="ignore",
    )
